<?php

class Adept_Component_SelectItem extends Adept_Component_Base 
{
    
    protected $title;
    protected $value;
    protected $disabled;

    public function getTitle() 
    {
        if (!is_null($this->title)) {
            return $this->title;
        }
        return $this->getValueOfBinding('title', $this->getValue());
    }
    
    public function setTitle($title) 
    {
        $this->title = $title;
    }
    
    public function getValue() 
    {
        if (!is_null($this->value)) {
            return $this->value;
        }
        return $this->getValueOfBinding('value', null);
    }
    
    public function setValue($value) 
    {
        $this->value = $value;
    }

    public function isDisabled() 
    {
        if (!is_null($this->disabled)) {
            return $this->disabled;
        }
        return $this->getValueOfBinding('disabled', false);
    }
    
    public function setDisabled($disabled) 
    {
        $this->disabled = $disabled;
    }
    
}